import http from "./fetchHttp";
export function upDateRoleInfo (data) {
  if (data[0].roleEnable === true) {
    data[0].roleEnable = 0
  }
  else {
    data[0].roleEnable = 1

  }
  console.log(data, 'data');

  return http({
    url: "/roleInfo/upDateRoleInfo",
    method: "post",
    data: data[0]
  });
}
